package com.bgs.feign;

import com.bgs.pojo.vo.BeforeUser;
import com.bgs.pojo.vo.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("service-before")
public interface ZeroFeign {


    @GetMapping(value = "before/bgs/store/zeroStoreIdToStore/{storeId}")
    public List<Store> zeroStoreIdToStore(@PathVariable("storeId") Integer storeId);

    @GetMapping(value = "before/bgs/before-user/zeroBeforeUserIdToBeforeUser/{beforeUserId}")
    public List<BeforeUser> zeroBeforeUserIdToBeforeUser(@PathVariable("beforeUserId") Integer beforeUserId);

    @GetMapping(value = "before/bgs/before-user/zeroReturnGoodsSubtractBalance/{beforeUserId}/{returnGoodsPayment}")
    public boolean zeroReturnGoodsSubtractBalance(@PathVariable("beforeUserId") Integer beforeUserId, @PathVariable("returnGoodsPayment") Integer returnGoodsPayment);
}
